import 'package:kwai/kwai_platform_interface.dart';
import 'package:kwai/model/callback_result.dart';

class Kwai {
  /// 初始化快手SDK
  Future<String> registerKwaiApp(
    String? apiKey,
    String? universalLink,
  ) {
    return KwaiPlatform.instance.registerKwaiApp(
      apiKey: apiKey,
      universalLink: universalLink,
    );
  }

  /// 授权快手登录
  Future<String> authorLogin({String? scope}) {
    return KwaiPlatform.instance.authorLogin(
      scope: scope,
    );
  }

  /// 授权登录结果
  Stream<CallbackResult> authorLoginCallback() {
    return KwaiPlatform.instance.authorLoginCallback();
  }
}
